home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 731 / gadtoolsbox / installlibs < prev    next >
Text File  |  1995-03-18  |  2KB  |  86 lines

  1. .K ""
  2. echo "This script will install the following libraries, after first checking"
  3. echo "to see if you already have one installed:"
  4. echo ""
  5. echo "    reqtools.library"
  6. echo "    nofrag.library"
  7. echo "    powerpacker.library"
  8. echo ""
  9. echo "If you have one installed, it will check the version number of the"
  10. echo "installed one and ask if you wish to update it."
  11. echo ""
  12.  
  13. FailAt 20
  14.  
  15. ask "Do you wish to continue with the installation? [y/n]"
  16. if not warn
  17.     skip NoInstall
  18. endif
  19.  
  20. if not exists libs:nofrag.library
  21.   echo "No existing nofrag.library, installing version 2.2..."
  22.   copy libs/nofrag.library libs:nofrag.library
  23. else
  24.   failat 20
  25.   echo "Found " noline
  26.   version nofrag.library 2 2
  27.   if warn
  28.     ask "Do you wish to update libs:nofrag.library to version 2.2? [y/n]"
  29.     if warn
  30.       echo "Updating libs:nofrag.library..."
  31.       protect libs:nofrag.library rwed
  32.       copy libs/nofrag.library libs:nofrag.library
  33.     else
  34.       echo "libs:nofrag.library unchanged."
  35.     endif
  36.   else
  37.     echo "The current installed version is up to date."
  38.   endif
  39. endif
  40.  
  41. if not exists libs:powerpacker.library
  42.   echo "No existing powerpacker.library, installing version 35.344..."
  43.   copy libs/powerpacker.library libs:powerpacker.library
  44. else
  45.   failat 20
  46.   echo "Found " noline
  47.   version powerpacker.library 35 344
  48.   if warn
  49.     ask "Do you wish to update libs:powerpacker.library to version 35.344? [y/n]"
  50.     if warn
  51.       echo "Updating libs:powerpacker.library..."
  52.       protect libs:powerpacker.library rwed
  53.       copy libs/powerpacker.library libs:powerpacker.library
  54.     else
  55.       echo "libs:powerpacker.library unchanged."
  56.     endif
  57.   else
  58.     echo "The current installed version is up to date."
  59.   endif
  60. endif
  61.  
  62. if not exists libs:reqtools.library
  63.   echo "No existing reqtools.library, installing version 38.693..."
  64.   copy libs/reqtools.library libs:reqtools.library
  65. else
  66.   failat 20
  67.   echo "Found " noline
  68.   version reqtools.library 38 693
  69.   if warn
  70.     ask "Do you wish to update libs:reqtools.library to version 38.693? [y/n]"
  71.     if warn
  72.       echo "Updating libs:reqtools.library..."
  73.       protect libs:reqtools.library rwed
  74.       copy libs/reqtools.library libs:reqtools.library
  75.     else
  76.       echo "libs:reqtools.library unchanged."
  77.     endif
  78.   else
  79.     echo "The current installed version is up to date."
  80.   endif
  81. endif
  82.  
  83. lab NoInstall
  84. echo "*nAll Done.  Click close gadget to get rid of window."
  85. endcli > nil:
  86.